From: Jim Blandy Date: Thu, 17 Jun 1993 05:04:57 +0000 (+0000) Subject: Changes for correct pgrp behavior; approach suggested by Bob X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95259 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=856a73b38b584fe962f413176ab310cd2b7689a9;p=emacs.git Changes for correct pgrp behavior; approach suggested by Bob Glickstein : * m/iris4d.h (LIB_STANDARD): Do list -lbsd here. * s/irix4-0.h (getpgrp, setpgrp): #define these to call BSDgetpgrp and BSDsetpgrp. (GETPGRP_NO_ARG): Don't #define this. * emacs.c (main): Don't test GETPGRP_NO_ARG. * sysdep.c (sys_suspend): Don't test GETPGRP_NO_ARG. --- diff --git a/src/emacs.c b/src/emacs.c index 3e18c398f13..c38811f117d 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -300,11 +300,7 @@ main (argc, argv, envp) #ifdef BSD { -#ifdef GETPGRP_NO_ARG - inherited_pgroup = getpgrp (); -#else /* THISSENTENCE_NO_VERB */ inherited_pgroup = getpgrp (0); -#endif setpgrp (0, getpid ()); } #endif @@ -687,11 +683,7 @@ shut_down_emacs (sig, no_x, stuff) { int tpgrp; if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1 -#ifdef GETPGRP_NO_ARG - && tpgrp == getpgrp ()) -#else && tpgrp == getpgrp (0)) -#endif { fflush (stdout); reset_sys_modes (); diff --git a/src/s/irix4-0.h b/src/s/irix4-0.h index 70c255044db..e2dbb37c37c 100644 --- a/src/s/irix4-0.h +++ b/src/s/irix4-0.h @@ -3,8 +3,6 @@ #define USG5_3 #define IRIX4 -#define USE_IRIX_BSDPGRP - #define HAVE_ALLOCA #ifndef NOT_C_CODE #include @@ -52,6 +50,10 @@ strcpy (pty_name, name); \ } +/* Use the BSD versions of the getpgrp and setpgrp functions. */ +#define setpgrp(pid, pgrp) BSDsetpgrp((pid), (pgrp)) +#define getpgrp(pid) BSDgetpgrp(pid) + /* jpff@maths.bath.ac.uk reports `struct exception' is not defined on this system, so inhibit use of matherr. */ #define NO_MATHERR